package com.x_memteor.base_master.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/5/14 16:51
 * @company:
 * @email: lx802315@163.com
 */
public class GameBean implements Parcelable {

    public static final int GAME_MODEL_LOCAL = 1;
    public static final int GAME_MODEL_ONLINE = 2;

    public static final int GAME_TYPE_ROULETTE = 1;
    public static final int GAME_TYPE_CARD = 2;

    public int getGameModel() {
        return gameModel;
    }

    public void setGameModel(int gameModel) {
        this.gameModel = gameModel;
    }

    public int getGameType() {
        return gameType;
    }

    public void setGameType(int gameType) {
        this.gameType = gameType;
    }

    private int gameModel;
    private int gameType;
    private int gameDuration;
    private int turnuration;
    private int pointsToWin;
    private List<ItemBean> list;
    private int chooseIcon;

    public List<ScorBean> getScorBeanList() {
        return scorBeanList;
    }

    public void setScorBeanList(List<ScorBean> scorBeanList) {
        this.scorBeanList = scorBeanList;
    }

    List<ScorBean> scorBeanList;

    public int getGameDuration() {
        return gameDuration;
    }

    public void setGameDuration(int gameDuration) {
        this.gameDuration = gameDuration;
    }

    public int getTurnuration() {
        return turnuration;
    }

    public void setTurnuration(int turnuration) {
        this.turnuration = turnuration;
    }

    public int getPointsToWin() {
        return pointsToWin;
    }

    public void setPointsToWin(int pointsToWin) {
        this.pointsToWin = pointsToWin;
    }

    public List<ItemBean> getList() {
        return list;
    }

    public void setList(List<ItemBean> list) {
        this.list = list;
    }

    public int getChooseIcon() {
        return chooseIcon;
    }

    public void setChooseIcon(int chooseIcon) {
        this.chooseIcon = chooseIcon;
    }

    public GameBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.gameDuration);
        dest.writeInt(this.turnuration);
        dest.writeInt(this.pointsToWin);
        dest.writeList(this.list);
        dest.writeInt(this.chooseIcon);
    }

    protected GameBean(Parcel in) {
        this.gameDuration = in.readInt();
        this.turnuration = in.readInt();
        this.pointsToWin = in.readInt();
        this.list = new ArrayList<ItemBean>();
        in.readList(this.list, ItemBean.class.getClassLoader());
        this.chooseIcon = in.readInt();
        int scortMapSize = in.readInt();
    }

    public static final Creator<GameBean> CREATOR = new Creator<GameBean>() {
        @Override
        public GameBean createFromParcel(Parcel source) {
            return new GameBean(source);
        }

        @Override
        public GameBean[] newArray(int size) {
            return new GameBean[size];
        }
    };
}
